// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import iview from 'iview';
import vuex from 'vuex';
import axios from './config';//默认http请求配置
import App from './App';
import router from './router';//路由配置
import store from './store/store';
import vueext from './extended/vueext';
import Loading from './components/comm/loading';//弹出正在加载中图层模块
import layoutHead from './components/comm/layoutHead';
import layoutFooter from './components/comm/layoutFooter';
import layoutMenu from './components/comm/layoutMenu';
import layoutBreadcrumb from './components/comm/layoutBreadcrumb';
import echarts from './echart/index.js';//echarts配置
import './style/iview-less/index.less';
import './style/site.css';
//import './style/statistics.css';



Vue.config.productionTip = false;

//引入iview
Vue.use(iview);

//注册全局模块
Vue.component('Loading', Loading);
Vue.component('LayoutHead', layoutHead);
Vue.component('LayoutFooter', layoutFooter);
Vue.component('LayoutMenu', layoutMenu);
Vue.component('LayoutBreadcrumb', layoutBreadcrumb);
//异步请求设置
Vue.prototype.$http = axios;

new Vue({
  el: '#app',
  store,
  router,
  template: '<App/>',
  components: { App }
});
